package com.example.interactservice.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author 软工2104-李家强-2100770248
 * @since 2023-09-27
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("follow")
@ApiModel(value = "Follow对象", description = "")
public class Follow implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("关注记录id")
    @TableId("follow_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long followId;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long userId;

    @ApiModelProperty("被关注的用户id")
    @TableField("follow_user_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long followUserId;

    @ApiModelProperty("关注时间")
    @TableField("follow_data")
    private LocalDateTime followData;


}
